%define pg.lr.type LR

%%

%%

S:
    E

Primary:
    name
    '(' E ')'

Postfix:
    Primary
    #Postfix '*'

Unary:
    Postfix
    '*' Unary

Binary:
    Unary
    Binary '*' Unary

E:
    Binary

name:
    'n'
